require "skynet.manager"
local skynet = require "skynet"

local gameName = "rt_mpps"
local rtmpps_robotMgr = require(gameName..".rtmpps_robotMgr")
local Message = require(gameName..".Message")
local Objects = require "Objects"



math.randomseed(tostring(os.time()):reverse():sub(1, 6))
g_objects = Objects.new()


function init()		
	local message = Message.new()
	local robotMgr = rtmpps_robotMgr.new(message)
	
	g_objects:add(robotMgr)
	g_objects:add(message)
	g_objects:hotfix(gameName)
	skynet.dispatch("lua", message:dispatch())
end
print("rtmpps_ _____main___________")
skynet.start(function()
	init()
	skynet.register(gameName)
end)